package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> findByMonth(Map<String, String> queryParam);

//    判断选择的日期是否能够预约
    OrderSetting findOrderSettingByOrderDate(Date date);

    void updateReservationsByDate(OrderSetting orderSetting);
}
